package com.voice.server.enums;

import com.wangjiacai.utils.enums.CodeEnum;
import lombok.Getter;

/**
 * Created by wangjc
 * 2017-06-11 18:56
 */
@Getter
public enum ResultEnum implements CodeEnum {

    ILLEGAL_USERS(100, "非法用户"),

    UserNamePasswordError(101, "用户名或密码错误"),

    CodeServiceInvalid(103, "短信服务商不可用"),

    PasswordSame(104, "密码和原密码相同"),

    PasswordError(105, "原密码输入错误"),

    PhoneNotExist(107, "手机号不存在"),

    PhoneExist(108, "手机号已经存在"),

    FileParseError(109, "文件解析失败"),

    EmailExist(110, "邮箱已经存在"),

    PhoneFormatError(111, "手机号格式错误"),

    AccountStatusError(112, "账号数据异常，请联系管理员"),

    AsrConnectionClosed(113,"阿里语音识别连接断开"),

    AppKeyAppSecretError(114,"身份校验失败"),

    TokenNotExist(115,"Token不存在"),

    URLFormatError(116,"Url格式错误"),

    TokenExpire(117,"Token已失效"),

    SignError(118,"签名校验失败"),

    RequestHeaderNotExist(119,"请求头中缺少参数"),

    XCaKeyNotExist(120,"请求头中缺少 x-ca-key"),

    XCaSignatureNotExist(121,"请求头中缺少 x-ca-signature"),

    SchedulerException(122,"设备定时调度失败，请重新操作"),

    ;

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
